export {}
{

    const stu1: {name:string, skills: string[], hi: (s:string)=>void } = { 
        name: '小花', 
        skills: ['react','vue','ts'],
        hi:(s)=>{console.log(s)} 
    }
    
    
    const stu2: {name:string, skills: string[], hi: (s:string)=>void } = { 
        name: '小白', 
        skills: ['vue'],
        hi:(s)=>{console.log(s)} 
    }
}

type Stu = {name:string, skills: string[], hi: (s:string)=>void }

const stu1:Stu  = { 
    name: '小花', 
    skills: ['react','vue','ts'],
    hi:(s)=>{console.log(s)} 
}


const stu2: Stu = { 
    name: '小白', 
    skills: ['vue'],
    hi:(s)=>{console.log(s)} 
}

const stu3: Stu = {
    name: '小红',
    skills: ['ts'],
    hi:(s)=>{console.log(s)}
}


stu3.skills